
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="zh_CN">
  <head>
    <meta charset="utf-8" />
    <title>TPIClient_Struct内容 &#8212; PyKBase 2.0.0 文档</title>
    <link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="_static/language_data.js"></script>
    <script type="text/javascript" src="_static/translations.js"></script>
    <link rel="index" title="索引" href="genindex.html" />
    <link rel="search" title="搜索" href="search.html" />
    <link rel="prev" title="TPIClient类" href="TPIClient.html" />
   
  <link rel="stylesheet" href="_static/custom.css" type="text/css" />
  
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head><body>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  <div class="section" id="tpiclient-struct">
<h1>TPIClient_Struct内容<a class="headerlink" href="#tpiclient-struct" title="永久链接至标题">¶</a></h1>
<dl class="class">
<dt id="HS_TABLE_FIELD">
<em class="property">class </em><code class="sig-name descname">HS_TABLE_FIELD</code><a class="headerlink" href="#HS_TABLE_FIELD" title="永久链接至目标">¶</a></dt>
<dd><p>HS_TABLE_FIELD类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">name</span><span class="p">;</span>                         <span class="o">///</span> <span class="n">字段名</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">aliasName</span><span class="p">;</span>                    <span class="o">///</span> <span class="n">字段别名</span>

<span class="c1">#ifdef _HOTSTAR_VERSION_400_</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">dispName</span><span class="p">;</span>                     <span class="o">///</span> <span class="n">字段显示名</span>
        
    <span class="n">unsigned</span> <span class="n">short</span> <span class="n">code</span><span class="p">;</span>                    <span class="o">///</span> <span class="n">字段存储编码0</span> <span class="n">GBK</span><span class="p">,</span><span class="mi">1</span> <span class="n">UNICODE</span>
    <span class="n">unsigned</span> <span class="n">short</span> <span class="n">ata</span><span class="p">;</span>                     <span class="o">///</span> <span class="n">字段存储类别</span>
    <span class="n">unsigned</span> <span class="n">short</span> <span class="n">index</span><span class="p">;</span>                   <span class="o">///</span> <span class="n">字段索引类别</span>

    <span class="nb">int</span> <span class="n">specProperty</span><span class="p">;</span>                       <span class="o">///</span> <span class="n">专有属性</span><span class="p">,</span><span class="n">不同的表中有不同的意义</span>
    <span class="n">unsigned</span> <span class="nb">int</span> <span class="n">modifiedCount</span><span class="p">;</span>             <span class="o">///</span> <span class="n">内部设定数据</span><span class="p">,</span><span class="n">忽略</span>
    <span class="n">unsigned</span> <span class="nb">int</span> <span class="n">lastIndexRec</span><span class="p">;</span>              <span class="o">///</span> <span class="n">内部设定数据</span><span class="p">,</span><span class="n">忽略</span>
<span class="c1">#else</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">dispName</span><span class="p">;</span>                     <span class="o">///</span> <span class="n">字段显示名</span>
<span class="c1">#endif </span>

    <span class="nb">int</span> <span class="nb">type</span><span class="p">;</span>                               <span class="o">///</span> <span class="n">字段预定义类型</span>
    <span class="nb">int</span> <span class="nb">len</span><span class="p">;</span>                                <span class="o">///</span> <span class="n">字段固定部分长度</span>
    <span class="nb">int</span> <span class="n">fieldOffset</span><span class="p">;</span>                        <span class="o">///</span> <span class="n">内部设定的数据</span><span class="p">,</span><span class="n">忽略</span><span class="p">(</span><span class="n">字段在固定部分中偏移位置</span><span class="p">)</span>
    <span class="nb">int</span> <span class="n">indexkeyLen</span><span class="p">;</span>                        <span class="o">///</span> <span class="n">内部设定的数据</span><span class="p">,</span><span class="n">忽略</span>

    <span class="n">unsigned</span> <span class="nb">int</span>  <span class="n">indexType</span><span class="p">;</span>                <span class="o">///</span> <span class="n">字段索引模式</span> <span class="p">(</span><span class="n">非本地表</span><span class="p">,</span><span class="n">该参数表示其他意义</span><span class="p">,</span><span class="n">参见相关表定义</span><span class="p">)</span>
    <span class="n">unsigned</span> <span class="nb">int</span>  <span class="n">indexProperty</span><span class="p">;</span>            <span class="o">///</span> <span class="n">字段索引属性</span> <span class="p">(</span><span class="n">非本地表</span><span class="p">,</span><span class="n">该参数表示其他意义</span><span class="p">,</span><span class="n">参见相关表定义</span><span class="p">)</span>

    <span class="nb">int</span> <span class="n">indexRootBlkNo</span><span class="p">;</span>                     <span class="o">///</span> <span class="n">内部设定的数据</span><span class="p">,</span><span class="n">忽略</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="HS_TABLE_HEAD">
<em class="property">class </em><code class="sig-name descname">HS_TABLE_HEAD</code><a class="headerlink" href="#HS_TABLE_HEAD" title="永久链接至目标">¶</a></dt>
<dd><p>HS_TABLE_HEAD类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    int version;                           /// 表版本号,只读,内部设定数据,设置时忽略
    int subVersion;                        /// 文件版本号,只读,内部设定数据,设置时忽略

    PyObject *tableName;                   /// 表名
    PyObject *tableAliasName;              /// 表别名
    PyObject *tableOwner;                  /// 表拥有者

#ifdef _HOTSTAR_VERSION_400_
    short iExtType;                        /// for extended type 
    short iExtFlag;                        /// for extended flag 

    PyObject *FileCacheNum;
    PyObject *dump1;                       /// 备用数据,忽略

    unsigned int appendCount;              /// 内部设定数据,设置时忽略
    unsigned int lastAutoID;               /// 内部设定数据,设置时忽略

    PyObject *tablePassword;               /// 表密码
    unsigned int type;                              /// 表类型,只读,内部设定数据,设置时忽略
    PyObject *dump2;                       /// 备用数据,忽略

#else /// HOTSTAR_VERSION_300
    PyObject *tablePassword;               /// 表密码
#endif

    unsigned int style;                    /// 表默认分词类型，如果为0，表示有系统指定，
                                           /// 0x80000001:KBase内置分词算法;0x80000002:NLPE MM分词算法;0x80000003NLPE 全切分分词算法

    PyObject *createTime;                  /// 建表时间 YYYYMMDDHHMMSS,只读
    PyObject *modifyTime;                  /// 修改表的时间 YYYYMMDDHHMMSS,只读 

    int languadCode;                       /// 未曾启用的数据,忽略
    int fieldNum;                          /// 表中字段个数,&lt; 1024
    int recNum;                            /// 表中记录个数(含删除的记录数)
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_TABLE_INFO">
<em class="property">class </em><code class="sig-name descname">TPI_TABLE_INFO</code><a class="headerlink" href="#TPI_TABLE_INFO" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_TABLE_INFO类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szTablePath</span><span class="p">;</span>                  <span class="o">//</span><span class="n">数据库完全路径</span><span class="o">+</span><span class="n">库名称</span>
    <span class="nb">int</span> <span class="n">lTableSize</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">TableHead</span><span class="p">;</span>                    <span class="o">//</span><span class="n">表头</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">pTableField</span><span class="p">;</span>                  <span class="o">//</span><span class="n">字段</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="HS_ACCOUNT_DBNAME">
<em class="property">class </em><code class="sig-name descname">HS_ACCOUNT_DBNAME</code><a class="headerlink" href="#HS_ACCOUNT_DBNAME" title="永久链接至目标">¶</a></dt>
<dd><p>HS_ACCOUNT_DBNAME类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">lUser</span><span class="p">;</span>                              <span class="o">//=</span><span class="mi">0</span><span class="n">Group</span> <span class="o">=</span><span class="mi">1</span><span class="n">User</span> <span class="o">=</span><span class="mi">2</span><span class="n">User</span><span class="p">(</span><span class="n">用于取加合组的属性</span><span class="p">)</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szName</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szDbName</span><span class="p">;</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_ACCOUNT_DBRIGHT">
<em class="property">class </em><code class="sig-name descname">TPI_ACCOUNT_DBRIGHT</code><a class="headerlink" href="#TPI_ACCOUNT_DBRIGHT" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_ACCOUNT_DBRIGHT类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">nSize</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">userDB</span><span class="p">;</span>                       <span class="o">//</span><span class="n">用户与表对应的关联信息</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">Mark</span><span class="p">;</span>                         <span class="o">//</span><span class="n">附加描述</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_FILE_REC_OUTPUT">
<em class="property">class </em><code class="sig-name descname">TPI_FILE_REC_OUTPUT</code><a class="headerlink" href="#TPI_FILE_REC_OUTPUT" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_FILE_REC_OUTPUT类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">nlength</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szTable</span><span class="p">;</span>                      <span class="o">//</span><span class="n">数据库名称</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szPackFile</span><span class="p">;</span>                   <span class="o">//</span><span class="n">数据包文件</span>
    <span class="nb">int</span> <span class="n">nStartRec</span><span class="p">;</span>                          <span class="o">//</span><span class="n">起始位置</span> 
    <span class="nb">int</span> <span class="n">nEndRec</span><span class="p">;</span>                            <span class="o">//</span><span class="n">终止位置</span> <span class="n">备注</span><span class="p">:</span><span class="n">如果开始和结束都为</span><span class="o">-</span><span class="mi">1</span><span class="n">时则输出全部字段</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">sqlWhere</span><span class="p">;</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="MemOpt">
<em class="property">class </em><code class="sig-name descname">MemOpt</code><a class="headerlink" href="#MemOpt" title="永久链接至目标">¶</a></dt>
<dd><p>MemOpt类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    int DeviceBuffer;                           // .idx 文件的缓存块数目(默认: 256),每块大小为 DEVICE_BLKSIZE(512)
    int RecordBuffer;                           // .rec 文件的缓存块数目(默认: 64),每块大小为 1024 byte
    int LxtBuffer;                              // .lxt 文件的缓存块数目(默认: 8),每块大小为 1024
    int LinkBuffer;                             // .lst 文件的缓存块数目(默认:  4),每块大小为 1024
    int TextIdBuffer;                           // .tid 文件的缓存块数目(默认:  4),每块大小为 1024
    int GIdBuffer;                              // .fid 文件的缓存块数目(默认:  4),每块大小为 1024
    
    int MemSizePerRoad;                         // vsm每路索引可用内存数（M）,默认为 128M
    
    int TextMergeRoad;                          // 合并的最大路数,默认为1800
    int TextCountPerRoad;                       // 全文字段每路最大词数,默认为3*1024*1024
    int CharCountPerRoad;                       // 简单字段每路最大词数,默认为2*1024*1024

    int FullFieldTextMergeRoad;                 //全字段合并的最大路数,默认为512
    int FullFieldTextCountPerRoad;              //全字段每路的最大词数,默认为512*512
    
    int nQueryCacheCountForLocalTable;          // 每个本地表检索条件缓存的个数,默认为256
    int nQueryCacheCountForTeleTable;           // 每个远端表检索条件缓存的个数,默认为64
    int nQueryCacheCountForUspTable;            // 每个USP表检索条件缓存的个数,默认为128
    
    int importDataIndexOn;                      // 从REC文件引入数据是否自动动索引,默认为1
    int logDebugMsg;                            // 是否在日志中输出检索调试信息,默认为0
    
    int loadLocalDict;                          // 是否加载词典,默认为1
    int loadUnicodeDict;                        // 是否加载Unicode词典,默认为0
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="CONFIG_PARAM">
<em class="property">class </em><code class="sig-name descname">CONFIG_PARAM</code><a class="headerlink" href="#CONFIG_PARAM" title="永久链接至目标">¶</a></dt>
<dd><p>CONFIG_PARAM类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">memParam</span><span class="p">;</span>                        <span class="o">///</span> <span class="n">MemOpt类</span>

    <span class="nb">int</span> <span class="n">m_nBTreeBuf</span><span class="p">;</span>                           <span class="o">///</span> <span class="n">B树缓存大小用于对数据库的索引</span> <span class="n">默认值0</span>
    <span class="nb">int</span> <span class="n">m_nRecordBuf</span><span class="p">;</span>                          <span class="o">///</span> <span class="n">检索记录的缓存大小</span>            <span class="n">默认值0</span>
    <span class="nb">int</span> <span class="n">m_nDataFileBuf</span><span class="p">;</span>                        <span class="o">///</span> <span class="n">数据文件的缓存大小</span>             <span class="n">默认值0</span>
    <span class="nb">int</span> <span class="n">m_IsCreateSysTable</span><span class="p">;</span>                    <span class="o">///</span> <span class="n">启动时是不是创建系统表</span>        <span class="n">默认值1</span>
    <span class="nb">int</span> <span class="n">m_IsFixDatabase</span><span class="p">;</span>                       <span class="o">///</span> <span class="n">启动时是不是对数据库进行索引</span>  <span class="n">默认值0</span>
    
    <span class="nb">int</span> <span class="n">nClusterEnable</span><span class="p">;</span>                        <span class="o">///</span> <span class="n">是否启用集群</span>
    <span class="nb">int</span> <span class="n">isClusterCenterNode</span><span class="p">;</span>                   <span class="o">///</span> <span class="n">是否是集群中心节点</span>
    <span class="nb">int</span> <span class="n">isClusterNode</span><span class="p">;</span>                         <span class="o">///</span> <span class="n">是否是集群数据节点</span>
    <span class="n">PyObject</span> <span class="n">szClusterCenterIP</span><span class="p">;</span>                <span class="o">///</span> <span class="n">集群中心节点服务器的</span> <span class="n">IP</span>
    <span class="nb">int</span> <span class="n">nClusterCenterPort</span><span class="p">;</span>                    <span class="o">///</span> <span class="n">集群中心节点的</span> <span class="n">PORT</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_TABLE_STORAGESPACE">
<em class="property">class </em><code class="sig-name descname">TPI_TABLE_STORAGESPACE</code><a class="headerlink" href="#TPI_TABLE_STORAGESPACE" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_TABLE_STORAGESPACE类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">tableName</span><span class="p">;</span>                        <span class="o">//</span><span class="n">表名</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">name</span><span class="p">;</span>                             <span class="o">//</span><span class="n">存储空间名</span>
    <span class="n">short</span> <span class="nb">type</span><span class="p">;</span>                                 <span class="o">//</span><span class="n">类型</span>            

    <span class="nb">int</span> <span class="n">lColCount</span><span class="p">;</span>                              <span class="o">//</span><span class="n">列个数</span><span class="p">,</span><span class="n">暂无效</span>
    <span class="nb">int</span> <span class="n">lColLen</span><span class="p">;</span>                                <span class="o">//</span><span class="n">列数据长度</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szCol</span><span class="p">;</span>                            <span class="o">//</span><span class="n">列名组合串</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="HS_FIELD_MAP_ITEM">
<em class="property">class </em><code class="sig-name descname">HS_FIELD_MAP_ITEM</code><a class="headerlink" href="#HS_FIELD_MAP_ITEM" title="永久链接至目标">¶</a></dt>
<dd><p>HS_FIELD_MAP_ITEM类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    int srcNum;                             /// 原始字段号
    int mapNum;                             /// 映射的字段号

    unsigned int weight;                    /// 权重（0-100）,为0时忽略
    unsigned int property;                  /// 映射属性、模式, 参见前面定义

    unsigned int maxcount;                  ///最大计数
    PyObject *dump;                         /// 必需为0,预留
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="USP_FIELD">
<em class="property">class </em><code class="sig-name descname">USP_FIELD</code><a class="headerlink" href="#USP_FIELD" title="永久链接至目标">¶</a></dt>
<dd><p>USP_FIELD类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">iFieldIndex</span><span class="p">;</span>
    <span class="nb">int</span> <span class="n">nFieldType</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">strFieldName</span><span class="p">;</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="USP_FIELDINFO_RET">
<em class="property">class </em><code class="sig-name descname">USP_FIELDINFO_RET</code><a class="headerlink" href="#USP_FIELDINFO_RET" title="永久链接至目标">¶</a></dt>
<dd><p>USP_FIELDINFO_RET类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">nFiedCount</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">FieldInfo</span><span class="p">;</span>                           <span class="o">//</span> <span class="n">USP_FIELD</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="_HS_TABLE_HEAD_Z3950">
<em class="property">class </em><code class="sig-name descname">_HS_TABLE_HEAD_Z3950</code><a class="headerlink" href="#_HS_TABLE_HEAD_Z3950" title="永久链接至目标">¶</a></dt>
<dd><p>_HS_TABLE_HEAD_Z3950类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">strHostName</span><span class="p">;</span>                    <span class="o">///</span> <span class="n">Z39</span><span class="o">.</span><span class="mi">50</span> <span class="n">服务器</span> <span class="n">DNS</span><span class="o">/</span><span class="n">IP</span>
    <span class="n">unsigned</span> <span class="nb">int</span> <span class="n">wdHostPort</span><span class="p">;</span>                  <span class="o">///</span> <span class="n">Z39</span><span class="o">.</span><span class="mi">50</span> <span class="n">服务器端口</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">strDBName</span><span class="p">;</span>                      <span class="o">///</span> <span class="n">Z39</span><span class="o">.</span><span class="mi">50</span><span class="n">数据库名</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">strRecordType</span><span class="p">;</span>                  <span class="o">///</span> <span class="n">建议的纪录类型</span><span class="p">(</span><span class="n">usmarc</span><span class="p">,</span><span class="n">unimarc</span><span class="o">...</span><span class="p">)</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">strConName</span><span class="p">;</span>                     <span class="o">///</span> <span class="n">用户名</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">strConPassWord</span><span class="p">;</span>                 <span class="o">///</span> <span class="n">口令</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">strGroupID</span><span class="p">;</span>                     <span class="o">///</span> <span class="n">组</span> <span class="n">ID</span>
    <span class="n">unsigned</span> <span class="nb">int</span> <span class="n">bNamedResultSet</span><span class="p">;</span>             <span class="o">///</span> <span class="n">是否支持NamedResultSet</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_EVENT_RUNTYPE">
<em class="property">class </em><code class="sig-name descname">TPI_EVENT_RUNTYPE</code><a class="headerlink" href="#TPI_EVENT_RUNTYPE" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_EVENT_RUNTYPE类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    int lType;                                  //执行方式，=0立即,=1单次,=2每天,=3每周,
                                                //          =4每月,=5每次启动服务时
    int lTime;                                  //开始提交时刻,数据格式：HHMMSS
    int lDate;                                  //开始提交日期,如是单次执行数据格式：YYYYMMDD
                                                //如是多次执行,表示每月或每周的第几天
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_IP">
<em class="property">class </em><code class="sig-name descname">TPI_IP</code><a class="headerlink" href="#TPI_IP" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_IP类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szIp</span><span class="p">;</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_LOGIN_PARA">
<em class="property">class </em><code class="sig-name descname">TPI_LOGIN_PARA</code><a class="headerlink" href="#TPI_LOGIN_PARA" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_LOGIN_PARA类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szUserName</span><span class="p">;</span>                       <span class="o">//</span><span class="n">用户名称</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szPassWord</span><span class="p">;</span>                       <span class="o">//</span><span class="n">用户密码</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">UserIp</span><span class="p">;</span>                           <span class="o">//</span><span class="n">TPI_IP</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="HS_Query">
<em class="property">class </em><code class="sig-name descname">HS_Query</code><a class="headerlink" href="#HS_Query" title="永久链接至目标">¶</a></dt>
<dd><p>HS_Query类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    int hQueryId;               /// &lt;= 0 表示失败
    int nHitCount;              /// 命中的记录数
    int nFreq;                  /// 命中的总记录数（0,表示同nHitCount,如果有TOP、LIMIT等子句限制,该值可能与nHitCount）
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="RECORDSET">
<em class="property">class </em><code class="sig-name descname">RECORDSET</code><a class="headerlink" href="#RECORDSET" title="永久链接至目标">¶</a></dt>
<dd><p>RECORDSET类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">hQuery</span><span class="p">;</span>                         <span class="o">//</span><span class="n">HS_Query</span>
    <span class="nb">int</span> <span class="n">lCurRec</span><span class="p">;</span>                              <span class="o">//</span><span class="n">Start</span>
    <span class="nb">int</span> <span class="n">hCon</span><span class="p">;</span>
    <span class="n">unsigned</span> <span class="nb">int</span> <span class="n">dwOptions</span><span class="p">;</span>                   <span class="o">//</span><span class="n">Count</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_OPEN_RECORDSET">
<em class="property">class </em><code class="sig-name descname">TPI_OPEN_RECORDSET</code><a class="headerlink" href="#TPI_OPEN_RECORDSET" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_OPEN_RECORDSET类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">pszSQL</span><span class="p">;</span>                  <span class="o">//</span><span class="n">SQL表达式</span>

    <span class="nb">int</span> <span class="n">nExecType</span><span class="p">;</span>                     <span class="o">//</span><span class="n">表示执行sql检索的类型</span><span class="p">,</span><span class="n">默认值0</span><span class="p">(</span><span class="n">即EXEC_NORMAL</span><span class="p">)</span><span class="o">.</span><span class="n">类型的枚举值参见TPI_CMDCODE_EXEC_SQL_SUBCMD</span>
    <span class="nb">int</span> <span class="n">nFlag</span><span class="p">;</span>                         <span class="o">//</span><span class="n">标识</span><span class="p">,</span><span class="n">取值见</span> <span class="n">TPI_RECORDSET_OPEN_FLAG</span><span class="p">,</span><span class="n">默认为</span> <span class="n">TROF_NORMAL</span><span class="p">(</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
    <span class="nb">int</span> <span class="n">nWaitSecond</span><span class="p">;</span>                   <span class="o">//</span><span class="n">查询超时时间</span><span class="p">,</span><span class="n">如果nWaitSecond</span><span class="o">&lt;=</span><span class="mi">0</span><span class="p">,</span><span class="n">取默认值SQL_CMD_DEFAULT_SECONDS</span>
    <span class="nb">int</span> <span class="n">nRecCount</span><span class="p">;</span>                     <span class="o">//</span><span class="n">打开结果集同时返回的记录个数</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szPrefix</span><span class="p">;</span>                <span class="o">//</span><span class="n">标红前缀</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szPostfix</span><span class="p">;</span>               <span class="o">//</span><span class="n">标红后缀</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szReserved</span><span class="p">;</span>              <span class="o">//</span><span class="n">保留</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_SERVER_SYSTEMINFO">
<em class="property">class </em><code class="sig-name descname">TPI_SERVER_SYSTEMINFO</code><a class="headerlink" href="#TPI_SERVER_SYSTEMINFO" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_SERVER_SYSTEMINFO类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    PyObject *HostIP;               //Server Ip:TPI_IP
    int lPort;                      //Server Port(只读，只能在服务器上设置)
    int lVersion;                   //服务器版本号(只读)

    int lMaxConNum;                 //系统充许的最大连接数(可设置 512-8196)最大在线/登陆用户数量
    int lCurConNum;                 //当前在线用户连接数(只读)

    int lThreadNum;                 //线程数(可设置 1-100)(并发数)
    int lMaxThreadNum;              //最大线程数(只读 100)

    int lBaseID;                    //从检索服务启动时起总共有多少用户LOGIN(只读)

    unsigned int lSysMemory;        //系统总内存(只读)
    unsigned int lAvailableMemory;  //系统可使用内存(只读)

    int lTableNum;                  //表个数(只读)
    int lViewNum;                   //视图个数(只读)
    int lUserCount;                 //用户账号个数(只读)

    unsigned int tStartupTime;      //服务器启动时间(只读)
    bool bRunning;                  //服务器状态:0暂停,1是运行(可设置)

    int lLogDays;                   //记录服务器日志天数(可设置)
    int lLogLevel;                  //记录服务器日志级别(可设置, =0不记,=1正常,=2调试)
    
    int lOperateTimeOut;            //操作超时的时间间隔(s)(可设置)
    int lConnectTimeOut;            //用户连接时间间隔(s)  (可设置)    

    PyObject *szSvrPath;            //服务器路径(只读)
    PyObject *szCurrentTime;        //服务器当前时间(只读) YYYYMMDDhhmmssMMM
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_SERVER_SYSTEMINFO_EX">
<em class="property">class </em><code class="sig-name descname">TPI_SERVER_SYSTEMINFO_EX</code><a class="headerlink" href="#TPI_SERVER_SYSTEMINFO_EX" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_SERVER_SYSTEMINFO_EX类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">nSize</span><span class="p">;</span>

    <span class="n">PyObject</span> <span class="o">*</span><span class="n">sysInfo</span><span class="p">;</span>                   <span class="o">//</span><span class="n">TPI_SERVER_SYSTEMINFO</span>
    
    <span class="nb">int</span> <span class="n">lCurThreadNum</span><span class="p">;</span>
    <span class="nb">int</span> <span class="n">lCanUseThreadNum</span><span class="p">;</span>                <span class="o">//</span><span class="n">当前时刻可用的线程数</span><span class="p">,</span><span class="n">用于判断服务器的负载状态</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">dwThreadFlag</span><span class="p">;</span>

    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szServerVer</span><span class="p">;</span>               <span class="o">//</span><span class="n">服务器详细版本号</span><span class="p">(</span><span class="n">只读</span><span class="p">)</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szServerBuildDate</span><span class="p">;</span>         <span class="o">//</span><span class="n">服务器编译日期</span><span class="p">(</span><span class="n">只读</span><span class="p">)</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szHotstarVer</span><span class="p">;</span>              <span class="o">//</span><span class="n">Hotstar版本号</span><span class="p">(</span><span class="n">只读</span><span class="p">)</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szHotstarBuildDate</span><span class="p">;</span>        <span class="o">//</span><span class="n">Hotstar编译日期</span><span class="p">(</span><span class="n">只读</span><span class="p">)</span>

    <span class="n">signed</span> <span class="n">long</span> <span class="n">long</span> <span class="n">lTotalCmdNum</span> <span class="p">;</span>      <span class="o">//</span><span class="n">接收命令总数</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szUsingPort</span><span class="p">;</span>               <span class="o">//</span><span class="n">正在使用的端口列表</span><span class="p">,</span><span class="n">用来保存除主端口以外其他端口</span>

    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szReserved</span><span class="p">;</span>                <span class="o">//</span><span class="n">保留</span><span class="p">,</span><span class="n">以待升级兼容</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_DISKINFO">
<em class="property">class </em><code class="sig-name descname">TPI_DISKINFO</code><a class="headerlink" href="#TPI_DISKINFO" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_DISKINFO类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">float</span> <span class="n">fTotalSize</span><span class="p">;</span>                       <span class="o">//</span><span class="n">以M为单位</span>
    <span class="nb">float</span> <span class="n">fFreeSize</span><span class="p">;</span>                        <span class="o">//</span><span class="n">以M为单位</span>
    <span class="n">char</span> <span class="n">DiskName</span><span class="p">;</span>                          <span class="o">//</span><span class="n">盘符</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_DIRINFO">
<em class="property">class </em><code class="sig-name descname">TPI_DIRINFO</code><a class="headerlink" href="#TPI_DIRINFO" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_DIRINFO类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szName</span><span class="p">;</span>                       <span class="o">//</span><span class="n">名称</span>
    <span class="nb">int</span> <span class="n">bIsFile</span><span class="p">;</span>                            <span class="o">//</span><span class="n">是文件还是目录</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_COPYFILE">
<em class="property">class </em><code class="sig-name descname">TPI_COPYFILE</code><a class="headerlink" href="#TPI_COPYFILE" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_COPYFILE类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szSrcPath</span><span class="p">;</span>                        <span class="o">//</span><span class="n">源路径</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szDesPath</span><span class="p">;</span>                        <span class="o">//</span><span class="n">目的路径</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_INI_READWRITE">
<em class="property">class </em><code class="sig-name descname">TPI_INI_READWRITE</code><a class="headerlink" href="#TPI_INI_READWRITE" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_INI_READWRITE类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szFile</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szSection</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szKey</span><span class="p">;</span>

    <span class="nb">int</span> <span class="n">lLen</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">pData</span><span class="p">;</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_ADD_RECORD">
<em class="property">class </em><code class="sig-name descname">TPI_ADD_RECORD</code><a class="headerlink" href="#TPI_ADD_RECORD" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_ADD_RECORD类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szTableName</span><span class="p">;</span>                      <span class="o">//</span> <span class="n">数据库名称</span>

    <span class="nb">int</span> <span class="n">lDataLen</span><span class="p">;</span>                               <span class="o">//</span> <span class="n">要追加的长度</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">pRecordBuf</span><span class="p">;</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_VAR_LONGS">
<em class="property">class </em><code class="sig-name descname">TPI_VAR_LONGS</code><a class="headerlink" href="#TPI_VAR_LONGS" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_VAR_LONGS类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">lCount</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">lData</span><span class="p">;</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_BULK_SET_RECORD">
<em class="property">class </em><code class="sig-name descname">TPI_BULK_SET_RECORD</code><a class="headerlink" href="#TPI_BULK_SET_RECORD" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_BULK_SET_RECORD类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">hQuery</span><span class="p">;</span>                       <span class="o">//</span><span class="n">HS_Query</span><span class="p">,</span><span class="n">结果集</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">vRow</span><span class="p">;</span>                         <span class="o">//</span><span class="n">TPI_VAR_LONGS</span><span class="p">,</span><span class="n">读写结果集中多少列</span><span class="p">,</span><span class="n">哪些列</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_DATA">
<em class="property">class </em><code class="sig-name descname">TPI_DATA</code><a class="headerlink" href="#TPI_DATA" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_DATA类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">lSize</span><span class="p">;</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">pData</span><span class="p">;</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_BACKUP_TABLE">
<em class="property">class </em><code class="sig-name descname">TPI_BACKUP_TABLE</code><a class="headerlink" href="#TPI_BACKUP_TABLE" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_BACKUP_TABLE类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="nb">int</span> <span class="n">lZip</span><span class="p">;</span>                                       <span class="o">//</span><span class="n">备份到压缩文件还是目录</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szTableName</span><span class="p">;</span>                          <span class="o">//</span><span class="n">表名</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szFilePath</span><span class="p">;</span>                           <span class="o">//</span><span class="n">备份到那里</span><span class="p">(</span><span class="n">或从哪里恢复</span><span class="p">),</span><span class="n">以</span><span class="s1">&#39;</span><span class="se">\\</span><span class="s1">&#39;</span><span class="n">结束</span>
</pre></div>
</div>
</dd></dl>

<dl class="class">
<dt id="TPI_FILE_APPEND_TABLE">
<em class="property">class </em><code class="sig-name descname">TPI_FILE_APPEND_TABLE</code><a class="headerlink" href="#TPI_FILE_APPEND_TABLE" title="永久链接至目标">¶</a></dt>
<dd><p>TPI_FILE_APPEND_TABLE类,数据成员如下:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szTable</span><span class="p">;</span>                          <span class="o">//</span><span class="n">数据库名称</span>
    <span class="n">PyObject</span> <span class="o">*</span><span class="n">szPackFile</span><span class="p">;</span>                       <span class="o">//</span><span class="n">数据包文件</span>
    <span class="nb">int</span> <span class="n">nStartRec</span><span class="p">;</span>                              <span class="o">//</span><span class="n">起始位置</span>
    <span class="nb">int</span> <span class="n">nEndRec</span><span class="p">;</span>                                <span class="o">//</span><span class="n">终止位置</span>
</pre></div>
</div>
</dd></dl>

</div>


          </div>
          
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="index.html">PyKBase</a></h1>








<h3>导航</h3>
<p class="caption"><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="kbasemodule.html">KBase模块</a></li>
<li class="toctree-l1"><a class="reference internal" href="connection.html">connection类</a></li>
<li class="toctree-l1"><a class="reference internal" href="cursor.html">cursor类</a></li>
<li class="toctree-l1"><a class="reference internal" href="TPIClient.html">TPIClient类</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">TPIClient_Struct内容</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="index.html">Documentation overview</a><ul>
      <li>Previous: <a href="TPIClient.html" title="上一章">TPIClient类</a></li>
  </ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">快速搜索</h3>
    <div class="searchformwrapper">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" />
      <input type="submit" value="转向" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>








        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2019, ZZJ.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 2.2.2</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
      
      |
      <a href="_sources/TPIClient_Struct.rst.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>